package com.pronosticnews.server.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pronosticnews.client.services.ClubService;
import com.pronosticnews.server.domain.dao.ClubDao;
import com.pronosticnews.server.domain.model.Club;
import com.pronosticnews.shared.model.ClubDto;

import fr.ysa.persistence.IDao;
import fr.ysa.services.ImplService;

@Service("clubService")
@Transactional
public class ClubServiceImpl extends ImplService<Club, ClubDto> implements
		ClubService {

	@Autowired
	ClubDao clubDao;

	@Override
	public IDao<Club> getDao() {
		return clubDao;
	}

	@Override
	public Class<Club> getEntityClass() {
		return Club.class;
	}

	@Override
	public Class<ClubDto> getEntityDtoClass() {
		return ClubDto.class;
	}

}
